export type OptionType = {
  value: string;
  text: string;
};
export type QuestionRadioPropsType = {
  title?: string;
  value?: string; //选中的value
  isVertical?: boolean;
  options?: OptionType[];
  //用于PropComponent 的onChange
  onChange?:(newsProps:QuestionRadioPropsType)=>void
  disabled?:boolean,
 stat?:Array<{name:string,count:number}>
};
export const QuestionRadioDefaultProps = {
  title: "单选标题",
  isVertical: false,
  options: [
    { value: "item1", text: "选项1" },
    { value: "item2", text: "选项2" },
    { value: "item3", text: "选项3" },
  ],
  value:'' //默认是空
};
//统计组件的属性类型
export type QuestionRadioStatPropsType={
  stat:Array<{name:string,count:number}>
}